* lisp/thingatpt.el (thing-at-point): Accept optional second argument
authorSam Steingold <sds@gnu.org>
Wed, 8 May 2013 15:13:25 +0000 (11:13 -0400)
committerSam Steingold <sds@gnu.org>
Wed, 8 May 2013 15:13:25 +0000 (11:13 -0400)
commit527264284989e5dcc0f17c0da7d3cac3ca1f585e
treee39479a2ead969ceade93206312c58f3d30afbd2
parent474fa77ab747234478d2060f164b7c424ade5547
* lisp/thingatpt.el (thing-at-point): Accept optional second argument
NO-PROPERTIES to strip the text properties from the return value.
* lisp/net/browse-url.el (browse-url-url-at-point): Pass NO-PROPERTIES
to `thing-at-point' instead of stripping the properties ourselves.
Also, when `thing-at-point' fails to find a url, prepend "http://"
to the filename at point on the assumption that the user is
pointing at something like gnu.org/gnu.
lisp/ChangeLog